package com.mcxx.modules.miniSalvation.order.service.write;

import com.mcxx.modules.miniSalvation.order.dao.write.ExpireFamilyWriteDao;
import com.mcxx.modules.miniSalvation.order.entity.ExpireFamilyEntity;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@TaTransactional
public class ExpireFamilyWriteService {

    @Autowired
    private ExpireFamilyWriteDao expireFamilyWriteDao;



    public int insert(ExpireFamilyEntity expireFamily) {
    	return expireFamilyWriteDao.insert(expireFamily);
    }


    public int insertIgnoreNull(ExpireFamilyEntity expireFamily) {
    	return expireFamilyWriteDao.insertIgnoreNull(expireFamily);
    }


    public int update(ExpireFamilyEntity expireFamily) {
    	return expireFamilyWriteDao.update(expireFamily);
    }


    public int updateIgnoreNull(ExpireFamilyEntity expireFamily) {
    	return expireFamilyWriteDao.updateIgnoreNull(expireFamily);
    }


    public int delete(ExpireFamilyEntity expireFamily) {
    	return expireFamilyWriteDao.delete(expireFamily);
    }

}
